Set a flag when image is modified