Updated for dynamic updates to look up table
Clean up the code some
Fixed method name
Aashish color map hacks
Call map.draw() to ensure layer it updated
Support changing K-means threshold