Added image unload undo, clearing undomanager