image delete bug fix