WIP - working on basic gamma correction