Sets sizes of images