code: def get_avatar_url(self, size=2):
          
          hashbytes = self.get_ps('avatar_hash')
  
          if hashbytes != "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000":
              ahash = hexlify(hashbytes).decode('ascii')
          else:
              ahash = 'fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb'
  
          sizes = {
              0: '',
              1: '_medium',
              2: '_full',
          }
          url = "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/%s/%s%s.jpg"
  
          return url % (ahash[:2], ahash, sizes[size])
docs: Get URL to avatar picture
  
          :param size: possible values are ``0``, ``1``, or ``2`` corresponding to small, medium, large
          :type size: :class:`int`
          :return: url to avatar
          :rtype: :class:`str`