add avatar code