title: how to return the image with the largest dimension
body: <p>I have been able to filter all the image url from a page and displayed them one after the other</p>
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  
  article_URL = &quot;https://medium.com/bhavaniravi/build-your-1st-python-web-app-with-flask-b039d11f101c&quot;
  response = requests.get(article_URL)
  soup = bs4.BeautifulSoup(response.text,'html.parser')
  images = soup.find('body').find_all('img')
  i = 0
  image_url = []
  for im in images:
      print(im)
      i+=1
      url = im.get('src')
      image_url.append(url)
      print('Downloading: ', url) 
      try:
          response = requests.get(url, stream=True)
          with open(str(i) + '.jpg', 'wb') as out_file:
              shutil.copyfileobj(response.raw, out_file)
              del response
      except:
          print('Could not download: ', url)
  
  new = [x for x in image_url if x is not None]
  for url in new:
      resp = requests.get(url, stream=True).raw
      image = np.asarray(bytearray(resp.read()), dtype=&quot;uint8&quot;)
      image = cv2.imdecode(image, cv2.IMREAD_COLOR)
  #     height, width, channels = image.shape
      height, width, _ = image.shape
      dimension = []
      for items in height, width:
          dimension.append(items)
  #     print(height, width)
      print(dimension)
  </code></pre>
  <p><strong>I want to print the image with the largest dimension from the list of url</strong></p>
  <p>This is the result I have from the list which is not good enough</p>
  <pre><code>[72, 72]
  [95, 96]
  [13, 60]
  [227, 973]
  [17, 60]
  [229, 771]
  </code></pre>