Fix orientation for images with embedded exif data