Fix a lot of edge cases for monochrome color spaces.
Fix a lot of edge cases for monochrome color spaces.

fcanas/ios-color-picker,SubCipher/ios-color-picker,panghea/ios-color-picker,fcanas/ios-color-picker,skonb/ios-color-picker,panghea/ios-color-picker