I'd like to have the possibility to set avatars for users with a bad or no avatar. I attached a patch in which avatars in the cache which end in "_local" take precedence over the contact-provided avatars. It doesn't change the GUI yet but it is already working if you copy the avatars into the cache directory manually.
Is this the right way? In particular, are there yet other places where I must look for the "_local" files?