gui: improve likelyhood that we support image data in float

Allow the low/high values of brightness/contrast to be in float.

Modify/fix a couple of places so that it looks correct with ints too.