image changed according to the steps in the script