Made _monochannel_to_rgb global