remove unused thumb resize logic from the palette data update() method
tweak the KMeans process to add a method calculate the nearest point to
the center in each cluster, which fixes the issue that some times there
is a non-existing color retrieved from the cluster center afther the
color analysis...
fix the crash issue when clear the current palette data