new resample gaussian function, removed 1d gaussian smoothing which
shifted the images ....