Added support for smoothing other than bilinear.