Add avatar function
Fix avatar get&set bug.
Merge pull request #24 from AncientAnton/master

add avatar function