added afterSave/afterDelete hooks for images