public void mouseClicked(MouseEvent e) {
		if (image !=null && tileset) {
			if (e.getX()>=0 && e.getX() <image.getWidth() && e.getY() >= 0 && e.getY() < image.getHeight()) {
				tileSelected = new Vector<Integer>();
				x0 = (e.getX()/(8*zoom));
				y0 = (e.getY()/(8*zoom));
				tileSelected.add(x0 + (y0*(image.getWidth()/(8*zoom))));
				repaint();
			}
		}
	}