improve error dithering of paletted images