lanczos resampling may be too slow