docs: private void initPixelsArray(BufferedImage image) {
          int width = image.getWidth();
          int height = image.getHeight();
          pixels = new int[width * height];
          image.getRGB(0, 0, width, height, pixels, 0, width);
  
      }