anchor.diff:  vcard_presence(Id, #state{jid=Jid}) ->
     Photo0 = exmpp_xml:element(undefined, 'photo', [], []),
     Photo = exmpp_xml:set_cdata(Photo0, Id),
  -  X = exmpp_xml:element('vcard-temp:x:update', 'x', [], [Photo0]),
  +  X = exmpp_xml:element('vcard-temp:x:update', 'x', [], [Photo]),
     Presence0 = exmpp_presence:presence(available, <<"Ready">>),
     exmpp_xml:set_children(Presence0, [X]).
   
  
positive.code:       {ok, Bin} = file:read_file(Filename),
        Base64 = base64:encode(Bin),
        Id = hexstring(crypto:sha(Bin)),
        Bytes = byte_size(Bin),
        AvatarPacket = avatar_packet(Id, Base64, State),
        AvatarMetadataPacket = avatar_metadata_packet(Id, Bytes, State),
        VCardPacket = vcard_packet(Base64, State),
        VCardPresence = vcard_presence(Id, State),
        exmpp_session:send_packet(Session, AvatarPacket),
        exmpp_session:send_packet(Session, AvatarMetadataPacket),
        exmpp_session:send_packet(Session, VCardPacket),
        exmpp_session:send_packet(Session, VCardPresence),
        ok;
  
negative.code:       error_logger:info_msg("Failed to read avatar: ~p - ~p", [Filename, Reason]),
        ok
    end.
  
  -spec vcard_packet(binary(), #state{}) -> #xmlel{}.
  vcard_packet(Base64, #state{jid=Jid}) ->
  