To save the changes: press Back when you have finished editing.
If you select not to overwrite the image a copy of the original image will be created with changes applied.
To discard the changes: select Cancel from the menu.