fixing delete image