Added exif check when auto-rotate is enabled.