void draw(BufferedImage toDraw, int width, int height) {
		if (image == null || image.getWidth() != width || image.getHeight() != height) {
			image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
			graphics = image.createGraphics();
		}

		graphics.drawImage(toDraw, 0, 0, null);
	}