add resampling with usage of bilinear and bicubic interpolation