Added manual image thumbnail exif orientation handling
Added manual image thumbnail exif orientation handling

Uses original image data to extract orientation exif to apply image
transformations before scaling and save. Manually done due to issues
with exif data loss during the existing Invervention image path.

For #1854

BookStackApp/BookStack,BookStackApp/BookStack,BookStackApp/BookStack