Do cleanup of the image file