check localStorage during drawPalette() to sync palettes

I made changes in drawPalette() to always check for the latest palette in localStorage. 
So, when there are multiple color pickers, the saved custom colors can be synchronized without refreshing the page.