saves resizing of images