drawPalette() uses 'drawContours' properly (issue 357)