update image position