write exif data to image before raising the temporary image signal

this fixes bug 9756