Downsample images.