Catch incorrect palette sizes
Make bytePalette read-only buffer