fix issue-158

Update palette and paletteArray variables when options are changed. If user has updated opts.palette, these changes are applied when redrawing the picker next time.