allowing now use of arbitrary tonemapper functions