this.setImage(getNewImage(img));
this.img = getNewImage(img); this.setZoom(zoom);  this.selection = new Rectangle(); this.undoArr.clear();  this.initGraphics();
    public void setImage(byte[][] img)    {        this.setImage(getNewImage(img));    }