public void saveAs() {
		try {
			FileNameExtensionFilter filter = new FileNameExtensionFilter(
					"Windows BMP file", "bmp");
			FileNameExtensionFilter filter2 = new FileNameExtensionFilter(
					"JPEG file", "jpg", "jpeg");
			FileNameExtensionFilter filter3 = new FileNameExtensionFilter(
					"PNG", "png");

			JFileChooser chooser = new JFileChooser();
			chooser.addChoosableFileFilter(filter);
			chooser.addChoosableFileFilter(filter2);
			chooser.addChoosableFileFilter(filter3);
			if (chooser.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) {
				File file = chooser.getSelectedFile();
				if (!file.getName().contains(".")) {
					if (chooser.getFileFilter() == filter3) {
						file = new File(file.getParent(), file.getName()
								+ ".png");
						ImageIO.write(image, "PNG", file);
					} else if (chooser.getFileFilter() == filter2) {
						file = new File(file.getParent(), file.getName()
								+ ".jpg");
						ImageIO.write(image, "JPEG", file);
					} else if (chooser.getFileFilter() == filter) {
						file = new File(file.getParent(), file.getName()
								+ ".bmp");
						ImageIO.write(image, "BMP", file);
					} else {
						file = new File(file.getParent(), file.getName()
								+ ".png");
						ImageIO.write(image, "PNG", file);
					}
				}
				GUI.setTitle(file.getName()
						+ "-GrapficEditor " + Constants.ver + "  \"" + Constants.verName + "\" " + lang);

			}

		} catch (IOException e) {
			e.printStackTrace();
		}
	}