minor modification in the update_image script