Add support for changing the gamma value

Allow changing the gamma value in image mode. By default, `{` decreases the gamma, `}` increases it, and `Ctrl-G` resets it to linear mapping. It is also possible to set the gamma value on the command line using the `-G` option. The current value is displayed in the bar (a la qiv), unless it's 0.