Article deals with a implementation of design pattern for basic mathematical morphology algorithms on bilevel images. A cellular automata approach is used for an architecture and implementation tasks. Using such ideas Roberts parallel thinning algorithm is implemented in C++ programming language.