channel handles color space conversions between image modes.
rgbImage combines Grayscale images into a Color one.
toRGB is a wrapper function for convenient grayscale to RGB color space conversion; the call toRGB(x) returns the result of channel(x, 'rgb').