Apply gamma after brightness and temperature

This applies the gamma correction after brightness and temperature
rather than before brightness and temperature.

Since gamma is a correction of the output of the monitor it should
be applied last so that all colour filters are also subject to this correction.
The effect of this change increases the brightness or temperature
gets lower. With my gamma settings (above 1) 3000 K is not as red
with the patch as without, and is closer to that in https://upload.wikimedia.org/wikipedia/commons/d/d7/Planckian-locus.png
than without this patch.

Edit: Nevermind that picture, it is very inaccurate.