@staticmethod
def _bwtocolor(gs, colormap, bgcolor=[0, 0, 0]):
    """
        Convert normalized [0,1] B&W image (gs) to color, applying a
        3-value list colormap (colormap)
        """
    return (1 - gs[:, :, (None)]) * bgcolor + gs[:, :, (None)] * colormap
