reset undo after loading image