updates size of images