Implementing tone mapping with convolution.