World(Stig2D p5, String toImg){

		this.p5 = p5;
		loadedImage = p5.loadImage(toImg); //load the source image
		loadedImage.resize(p5.width, p5.height);
		loadedImage.loadPixels(); //load the pixel array
		w = loadedImage.width;
		h = loadedImage.height;
		vals = new float[w][h];

		loadVals();
		//loadBlank(); //comment out to load the image
	}