made avatar dynamic, should work when it gets added to api