set avatar logic

shit isnt uploading. test this at home

tests pass