optimize GLSL shaders for grayscale images

this small commit changes the upper/lower VOI window bound calculations
to be more optimization friendly so most GLSL compilers can turn them into
a single-cycle multiply-and-add operation.