Fix auto rotation on JPEG with missing EXIF data