dither function

Image dithering