Naively implement gamma correction via table lookup