XF 1.5 Custom avatar frame per user group


I want to create custom avatar frames for different user groups. Basically a transparent image which goes over top of a users avatar when they post. I've seen a few different forums do this and I was wondering if anyone knew how to accomplish it. I can't seem to find any info on custom avatar frames anywhere.