Fixed bug when trying to delete image
1.4