LUN-1181: delete image_ctx whenever a smartsnippet is deleted