public void savePicture() {
		BufferedImage img = this.getBufferedImage();
		JFileChooser fc = new JFileChooser();
		FileNameExtensionFilter fnef = new FileNameExtensionFilter("Images", "png");
		fc.setFileFilter(fnef);
		int returnVal = fc.showSaveDialog(body);
		if (returnVal == JFileChooser.APPROVE_OPTION) {
			File file = fc.getSelectedFile();
			int index = file.getAbsolutePath().lastIndexOf(".");
			if (index == -1 || !file.getAbsolutePath().substring(index+1).equals("png")) {
				file = new File(file.getAbsolutePath() + ".png"); 
			}
			try {
				ImageIO.write(img, "png", file);
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}