Resizes images.