the minimums should be set to 0, I think.  Here and for green and blue as well.

Otherwise, a solid black image will produce ranges of [1-255] and the actual color will be outside of the range. This will cause negative numbers in the shader, which seem likely to cause problems.