unfortunately breaks previous, but I should have done this from start
much faster dithering and uses PIL