Fixes to support Exif Orientation tag