replace grayscale with color from a colormap (uses ndarray)