In order to undo all changes in the opened file and roll back to the original image please use the Revert item in the File main menu.