resample waterfall image to exact width and keep all peaks

(this is for 2.7.0)