Added gammaCorrect() in Imageclass.py
Added tests and made improvements
Wanted to manually test #364 as it wouldn't merge clean