mx04; taking an image and finding its main color

Anyone know how to take an image thats loaded in thru xml, find its main color, and send that color to output?

i searched, couldnt find much…