Combind erosion and dilation processor into one module.
Refactor ImageViewer.