Some progress on extracting distinctive colors from the images, but it's not working great. I don't really understand the algo so it's a shot in the dark. It's not 100% wrong, but of the colors that show up in the palette, not all of them seem sensibly. And there's usually a black of some sort in basically all images which is confusing.