New attempt at resizing the images.