Fixed rotation of image data

There, fixed.