Example of something that will do resampling of input data - down sample 1D - re-implement `modestimage`