Clean up saving of images, and marking what part of the image changed.