We assume that alpha value is constant for the whole image. The range calculation is max - min, so alpha zeroes out. The color normalization to range is color - min, so alpha also zeroes out here.