Color Palette working

Done with color palette functionality. Can now define a color palette of
16 colors for the gif to cycle through