docs: public InputStream getImageAsStream(Photo photo, int size) throws FlickrException {
          try {
              String urlStr = "";
              if (size == Size.SQUARE) {
                  urlStr = photo.getSmallSquareUrl();
              } else if (size == Size.THUMB) {
                  urlStr = photo.getThumbnailUrl();
              } else if (size == Size.SMALL) {
                  urlStr = photo.getSmallUrl();
              } else if (size == Size.MEDIUM) {
                  urlStr = photo.getMediumUrl();
              } else if (size == Size.LARGE) {
                  urlStr = photo.getLargeUrl();
              } else if (size == Size.LARGE_1600) {
                  urlStr = photo.getLarge1600Url();
              } else if (size == Size.LARGE_2048) {
                  urlStr = photo.getLarge2048Url();
              } else if (size == Size.ORIGINAL) {
                  urlStr = photo.getOriginalUrl();
              } else if (size == Size.SQUARE_LARGE) {
                  urlStr = photo.getSquareLargeUrl();
              } else if (size == Size.SMALL_320) {
                  urlStr = photo.getSmall320Url();
              } else if (size == Size.MEDIUM_640) {
                  urlStr = photo.getMedium640Url();
              } else if (size == Size.MEDIUM_800) {
                  urlStr = photo.getMedium800Url();
              } else if (size == Size.VIDEO_ORIGINAL) {
                  urlStr = photo.getVideoOriginalUrl();
              } else if (size == Size.VIDEO_PLAYER) {
                  urlStr = photo.getVideoPlayerUrl();
              } else if (size == Size.SITE_MP4) {
                  urlStr = photo.getSiteMP4Url();
              } else if (size == Size.MOBILE_MP4) {
                  urlStr = photo.getMobileMp4Url();
              } else if (size == Size.HD_MP4) {
                  urlStr = photo.getHdMp4Url();
              } else {
                  throw new FlickrException("0", "Unknown Photo-size");
              }
              URL url = new URL(urlStr);
              HttpsURLConnection conn = (HttpsURLConnection) url.openConnection();
              if (transport instanceof REST) {
                  if (((REST) transport).isProxyAuth()) {
                      conn.setRequestProperty("Proxy-Authorization", "Basic " + ((REST) transport).getProxyCredentials());
                  }
              }
              conn.connect();
              return conn.getInputStream();
          } catch (IOException e) {
              throw new FlickrException(e.getMessage(), e.getCause());
          }
      }