Implement loading palettes from raster images (by using Means-Shift)