image::resampling modifications