JPEGs: fix resolution differences between JFIF and EXIF chunks when saving