Get avatar based on steamid

I want to draw someone avatar on a panel based on their steamid.
For Example: If the player is not on the server it will still display his avatar or if he changes his avatar it will still be displayed because it won’t get the LocalPlayer avatar it will take the avatar from their steamid.

Get the avatar when they join and cache it for later viewing.

You can use the Steam Web API as well:

iirc there was a new function to AvatarImage that used their community ID to get their avatar.

So that doesn’t exist anymore ?