Set same resolution in JPEG header and EXIF

What we did is perfectly fine according to the standards, however some
applications like the Telekom cloud seem to be confused by that. This
hopefully fixes it.