public void paintComponent(Graphics g) {
		super.paintComponent(g); // paints background
		Iterator<TransparentImageLevel> iter = _imgLevels.iterator();
		while (iter.hasNext()) {
			TransparentImageLevel layer = iter.next();
			if (layer != null && layer.isVisible()) {
				g.drawImage(layer.getImg(), 0, 0,
						_width * _controls.getScale(),
						_height * _controls.getScale(), this);
			}
		}
		if (_rect != null) {
			g.setColor(Color.BLACK);
			g.drawRect(_rect.x, _rect.y, _rect.width, _rect.height);
		}
		if (_oval != null) {
			g.setColor(Color.BLACK);
			g.drawOval(_oval.x, _oval.y, _oval.width, _oval.height);
		}
		if (_p1 != null && _p2 != null) {
			g.setColor(Color.BLACK);
			g.drawLine(_p1.x, _p1.y, _p2.x, _p2.y);
		}
	}