Fix the missing preview pixels
Basecurve: defaults to logarithmic scale

And adjust mouse scrolls to that scale
Preview scrolling
Zoom 400%
Factor out wavelet code
Smooth wavelet threshold