Added avatar functionality