fix kernel dimensions.
add partial support for grayscale.
gen-dots.py.
fix directory scan; and n_mins counter.