int w = (int) (drawingWidth * zoom), h = (int) (drawingHeight * zoom);
int w = (int) (drawingWidth * zoom) + 1, h = (int) (drawingHeight * zoom) +1;
    protected void initGraphics()    {        this.drawingWidth = img.length;        this.drawingHeight = img[0].length;        int w = (int) (drawingWidth * zoom), h = (int) (drawingHeight * zoom);        this.setPreferredSize(new Dimension(w, h));        repaint();    }