It is possible...
I don't know how, but I've seen such a thing.
There is a Polish site for rovers (older scouts) where you declare what rank in scouting you have, and then it displays an image of a rank.
There is even more to that:
you can choose whether you have a tourist badge, and if no the image of the badge is in grayscale, and if yest the appropriate badge is in full color (highlited)...
I've asked how it's done, and as soon as I know I'll let you know.