Create tonemap.cpp

Adaptive tone mapping code