diff --git a/lib/writer/xelatex.js b/lib/writer/xelatex.js
index <HASH>..<HASH> 100644
--- a/lib/writer/xelatex.js
+++ b/lib/writer/xelatex.js
@@ -35,6 +35,15 @@ function formatBlock(block) {
 };
 
 var formatImage = function(spans) {
+  if (spans.length > 0 && spans[0][0] === 'url') {
+    var url = spans[0][1];
+    var str =
+'\\begin{figure}[H]\n' +
+'\\centering\n' +
+'\\includegraphics{' + url + '}\n' +
+'\\end{figure}';
+    return str;
+  }
   return formatSpans(spans);
 };
[xelatex] Implement image formatting.