Parameterized filtering steps

Add CLI args for parameters of filtering preprocessing steps.
Switched to L2 norm for dithering, much better results.