Hi @Rolandy Before saving the photo you have edited click the Menu Bar (3 dots) bottom right for more options and save as copy. As a result you will have the original photo plus the edited one,therefore save as copy rather than save.
if you go back into the photo editor ,edit do you not have an option to revert?
I do not work for Samsung or make Samsung Products but provide independent advice and valuable contributions.
My Device- S21 Ultra 5G ( SM-998B/DS ) CSC= BTU , 12GB/256GB
One Ui 5.0,Android 13 .