code: function img_xhr(img, url) {
  	var xhr = new XMLHttpRequest();
  	xhr.open('GET', url, true);
  	xhr.responseType = 'blob';
  	xhr.onload = function(e) {
  		img.src = window.URL.createObjectURL(this.response);
  	};
  	xhr.send();
  }
docs: Utility for loading the thumbnail in chromeapp