code: def getImageObject(url, referrer, session, max_content_bytes=MaxImageBytes):
      
      return urlopen(url, session, referrer=referrer, max_content_bytes=max_content_bytes, stream=True)
docs: Get response object for given image URL.