update image resolution