Implemented Gamma correction from Shapiro