finish error callback if image is not successfully deleted