Uncommented out code that saves images during a document save.