Fix removal of image.