code: def to_color(self):
          
          color_data = np.repeat(self.data[:,:,np.newaxis], 3, axis=2)
          return ColorImage(color_data, self._frame)
docs: Convert the grayscale image to a ColorImage.
  
          Returns
          -------
          :obj:`ColorImage`
              A color image equivalent to the grayscale one.