code: public void setBufferedImage(BufferedImage img) {
          image = img;
          width = img.getWidth();
          height = img.getHeight();
          updateColorArray();
      }
docs: Sets a new image
  
  @param BufferedImage imagem