made gamma correction for dithering optional