static public void save(BufferedImage img, String path, String format){
		try {
		    File outputfile = new File(path);
		    ImageIO.write(img, format, outputfile);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}