docs: private BufferedImage to8Bit1ComponentGrayScale(int[][] decoded, int width, int height) {
          BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_BYTE_GRAY);
          byte[] imageBuffer = ((DataBufferByte) image.getRaster().getDataBuffer()).getData();
  
          for (int i = 0; i < imageBuffer.length; i++) {
              imageBuffer[i] = (byte) decoded[0][i];
          }
  
          return image;
      }