Taken dither.cpp from makefile branch
Debugging nodither