fix array mistakes in steps.remove_images