update image script