Make update the image data run when the document becomes active.