Removing nonexisting references to image files from the map when saving.