update handling of image adding/updating
update handling of image adding/updating