improve dithering, palette color selection