Use Reinhart tonemapping.