Enable conditional image deleting