Tag image color palette extractor