private void loadImageData(String img) {

		System.out.println("loadImage got " + img.length() + " bytes");
		img = Util.removeBlockHeaders(img);
		System.out
				.println("removed block headers (" + img.length() + " bytes)");

		this.colourMime = Util.readStringAttr(img, "GImage:Mime");
		if (this.colourMime == null)
			return; /* Early fail */

		this.blurAtInfinity = Util.readFloatAttr(img, "GFocus:BlurAtInfinity");
		this.focalDistance = Util.readFloatAttr(img, "GFocus:FocalDistance");
		this.focalPointX = Util.readFloatAttr(img, "GFocus:FocalPointX");
		this.focalPointY = Util.readFloatAttr(img, "GFocus:FocalPointY");

		this.depthFormat = Util.readStringAttr(img, "GDepth:Format");
		this.depthMime = Util.readStringAttr(img, "GDepth:Mime");
		this.depthNear = Util.readFloatAttr(img, "GDepth:Near");
		this.depthFar = Util.readFloatAttr(img, "GDepth:Far");

		this.originalColorImage = Util.readBase64Attr(img, "GImage:Data");
		this.depthMapImage = Util.readBase64Attr(img, "GDepth:Data");
	}