Add support for updating palettes per-frame.