Deepcopy colormap to avoid side effects.

Fixes #191.