use user.username as the name of the avatar
fix user avatar url in template
fix tempalte url bug