var fragment = getCopyOfNode(req.responseXML.documentElement.firstChild);
var img = fragment.getElementsByTagName('img')[0];
img.onload = function(evt) {
var fragment = getCopyOfNode(req.responseXML.documentElement.firstChild);
var img = fragment.getElementsByTagName('img')[0];
img.onload = function(evt) {