corrected image deletion