public void setImage(File file) {
		if (pic != null)
			oldpic = new Picture(pic.getImage());
		if (file == null || !file.isFile())
			return;
		try {
			pic = new Picture(file.getAbsolutePath());
		} catch (IOException e) {
			e.printStackTrace();
		}
		if (!pic.isNull())
			repaint();
	}