Sending the pallete as a pointer