Fix non-square images from being sized wrong.