Used a basic algorithm that tries to use pixels from a given image, and tweaks them up to a certain point to avoid re-using colors. If the color will be too different from the original, it gives up and pulls it from a linear list of remaining colors.