if (zoom != 1.0) {
    public void drawRaw(Graphics g, int x, int y, double zoom) {        if (zoom != 1.0) {            int h = (int)(getHeight() * zoom);            if (scaledImage == null || scaledImage.getHeight(null) != h) {                scaledImage = getScaledImage(zoom);                if(scaledImage != null) {	                MediaTracker mediaTracker = new MediaTracker(new Canvas());	                mediaTracker.addImage(scaledImage, 0);	                try {	                    mediaTracker.waitForID(0);	                }	                catch (InterruptedException ie) {	                    System.err.println(ie);	                    return;	                }	                mediaTracker.removeImage(scaledImage);	                g.drawImage(scaledImage, x, y, null);				} else {					//TODO: allow drawing IDs when no image data exists as a config option				}            } else {                g.drawImage(scaledImage, x, y, null);            }        } else {            g.drawImage(getImage(), x, y, null);        }    }