Get primary colors from images in Node using GM