Added palette size input