Fix image delete

You have done a good job.
i have just found a little bug for deleting image.