Gamma correction and dithering