It prompts correctly the user to save file when the image is modified.