Added cache clearing when image is updated