Automatically resizes images.