public void adjustSize(int width, int height) {
		saving = true;
		if(width > bi.getWidth() || height > bi.getHeight()) {
			BufferedImage tempBi = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
			Graphics g = tempBi.createGraphics();
			this.paint(g);
			g.dispose();
			bi = tempBi;
		} else {
			BufferedImage tempBi = bi.getSubimage(0, 0, width, height);
			bi = tempBi;
		}
		saving = false;
		this.setPreferredSize(new Dimension(width, height));
	}