fix connect with TOX_AVATAR_FORMAT