Added experimental image 3d downsample function.