Binary mask as a module

Binary mask is now a full module. Operations, image conversion will be
added to this module later