vcard.py contain a function get_avatar_pixbuf_encoded_mime duplicated from profile_window.py
It seems there is two function called get_avatar_pixbuf_encoded_mime, doing the same stuff. I suggest to keep only one of the two, the one of vcard ( i didn't checked if they exactly match but they seems so ).
Here is a patch.