add gamma correction