Discrepancies in pixels following resizing