got the color palette stuff all figured out. Found a mistake in the image load stuff. I fixed that