added simple gamma correction via mapping