refactor user avatar