update image scale