Fix incorrect contentMode fitting when image is rotated 90 degrees