refactoring user profile avatar