fixed image deletion