code: public URL createImageUrl(String imagePath, String requiredSize) throws MovieDbException {
          if (!isValidSize(requiredSize)) {
              throw new MovieDbException(ApiExceptionType.INVALID_IMAGE, "Required size '" + requiredSize + "' is not valid");
          }
  
          StringBuilder sb = new StringBuilder(getBaseUrl());
          sb.append(requiredSize).append(imagePath);
  
          try {
              return new URL(sb.toString());
          } catch (MalformedURLException ex) {
              throw new MovieDbException(ApiExceptionType.INVALID_URL, "Failed to create image URL", sb.toString(), ex);
          }
      }
docs: Generate the full image URL from the size and image path
  
  @param imagePath
  @param requiredSize
  @return
  @throws MovieDbException