Merged Gamma with main script

Merged the gamma correction from the seperate script as a flag into the
main function