Implementing popularity color quantiation for demo.