Switched to a different but better way to draw the palette