[feature/avatars] Add compatibility function for get_user_avatar()

PHPBB3-10018