code: def to_color(self):
          
          color_data = np.zeros([self.height, self.width, 3])
          color_data[:, :, 0] = self.data
          color_data[:, :, 1] = self.data
          color_data[:, :, 2] = self.data
          return ColorImage(color_data.astype(np.uint8), self._frame)
docs: Creates a ColorImage from the binary image.
  
          Returns
          -------
          :obj:`ColorImage`
              The newly-created color image.