Added the ability for the image loader to find the closest match for a color that is not in the palette. Thanks stackoverflow.