Keep (some) metadata when saving modified image
When saving a modified image, reapply the old image's tags, rating and comment attributes.
It would probably be even better to save all the file attributes, not just a few known ones. But this should cover the most common cases, and I couldn't find a cross-platform way to get all the attributes and can only test on Linux myself.