Fixes to image saving with Exif data intact