update image size and placement