update image positions