The function IMG_histogram_8 uses a variable of type short. They have a value from -32768 to 32768. But in the case of fog or darkness, a certain number of pixels of brightness can exceed these values. What can be done in this case? Which can be way to solve this problem?