added gamma feature
Merge pull request #116 from salimfadhley/master

Add gamma correction.
Thanks salimfadhley!