Added Lanczos downsampling option