update extractSwatches to allow updating a Palette. Add rerender palette functionality with reactive variables