changed dither_rbg.py to be more generic