add auto-rotating of uploaded image based on Exif orientation