plug-ins: save the metadata of the orig_image_ID in file-jpeg-save

The image_ID might be an export image and already deleted.