Actually in classifieds or reviewpost I do something similar but different. I add the ability to add a url in the thumbnail field in the category table so one can specifically add a custom avatar from where ever or simply use the default code.
This above is a simple quick and dirty hack for you.