added cache clear when image is deleted