added previewing of images using ImagePlane.cs and TheState.cs