Use the images imageOrientation instead of assuming UIImageOrientationUp