public void mousePressed(MouseEvent e) {
		if (image !=null && tileset) {
			if (e.getX()>=0 && e.getX() <=image.getWidth() && e.getY() >= 0 && e.getY() <= image.getHeight()) {
				x0=e.getX()/(8*zoom);
				y0=e.getY()/(8*zoom);
			}
		}
		
	}