docs: protected InputStream getStreamFromNetwork(String imageUri, Object extra) throws IOException {
  		HttpURLConnection conn = createConnection(imageUri, extra);
  
  		int redirectCount = 0;
  		while (conn.getResponseCode() / 100 == 3 && redirectCount < MAX_REDIRECT_COUNT) {
  			conn = createConnection(conn.getHeaderField("Location"), extra);
  			redirectCount++;
  		}
  
  		InputStream imageStream;
  		try {
  			imageStream = conn.getInputStream();
  		} catch (IOException e) {
  			// Read all data to allow reuse connection (http://bit.ly/1ad35PY)
  			IoUtils.readAndCloseStream(conn.getErrorStream());
  			throw e;
  		}
  		if (!shouldBeProcessed(conn)) {
  			IoUtils.closeSilently(imageStream);
  			throw new IOException("Image request failed with response code " + conn.getResponseCode());
  		}
  
  		return new ContentLengthInputStream(new BufferedInputStream(imageStream, BUFFER_SIZE), conn.getContentLength());
  	}