Avatar generation templatetag

Closes #2