bug fixed in ConvertScalarImageToRGB