switching to bilinear interpolation in 2D and touching up edge discontinuities