Gamma setting implemented

It doesn't work on my linux box but it should work on other platforms