docs: public BufferedImage getBufferedImage(int width, int height, int type) {
          int wDif,
                  hDif,
                  fWidth = 0,
                  fHeight = 0;
  
          double imgWidth,
                  imgHeight;
  
          double factor;
          imgWidth = image.getWidth();
          imgHeight = image.getHeight();
  
  
          switch (type) {
              case PROPORTIONAL:
                  wDif = (int) imgWidth - width;
                  hDif = (int) imgHeight - height;
                  if (wDif > hDif) {
                      factor = width / imgWidth;
                  } else {
                      factor = height / imgHeight;
                  }
                  fWidth = (int) Math.floor(imgWidth * factor);
                  fHeight = (int) Math.floor(imgHeight * factor);
                  break;
          }
          return getBufferedImage(fWidth, fHeight);
      }