public static String removeBlockHeaders(String img) {
		final String marker = readStringAttr(img, "xmpNote:HasExtendedXMP");
		if (marker == null)
			return img;

		StringBuffer sb = new StringBuffer();

		Pattern pat = Pattern.compile("....http://ns.adobe.com/xmp/extension/."
				+ marker + "........");
		Matcher m = pat.matcher(img);

		while (m.find())
			m.appendReplacement(sb, "");
		m.appendTail(sb);

		return sb.toString();
	}