add createSmoothTonemap function