modified files for dithering, caching, lookup table