Moved image modifications after overwriting check

If the image isn't to be saved, (don't overwrite chosen), no need to
apply the modifications wanted.