docs: add a README file
cleanup: some minor refactoring
faster generation of pixels by using parent fragment bits

basically, areas of the parent which are clearly black or clearly white
are assumed in the child fragment