Updated to callback function for image delete