cleanup and Img->Image