File Upload: Automatically correct orientation of the uploaded images