drawPalette(colormap) bug fixed [issue 536]