implemented simple gammacorrection in CL