diff --git a/R-pandoc.cabal b/R-pandoc.cabal
--- a/R-pandoc.cabal
+++ b/R-pandoc.cabal
@@ -1,5 +1,5 @@
 name: R-pandoc
-version: 0.2.1
+version: 0.2.2
 cabal-version: >=1.10
 build-type: Simple
 license: BSD3
@@ -17,11 +17,11 @@
 
 library
     build-depends:
-        base         >=4.6  && <4.9,
-        pandoc-types >=1.12 && <1.13,
+        base         >=4.6  && <4.10,
+        pandoc-types >=1.12 && <1.17,
         directory    >=1.2  && <1.3,
         filepath     >=1.3  && <1.5,
-        process      >=1.2  && <1.3,
+        process      >=1.2  && <1.5,
         split        >=0.2  && <0.3
     exposed-modules: Text.Pandoc.R
     exposed: True
@@ -32,9 +32,9 @@
 
 executable R-pandoc
     build-depends:
-        base         >=4.6  && <4.9,
-        pandoc-types >=1.12 && <1.13,
-        R-pandoc     ==0.2.1
+        base         >=4.6  && <4.10,
+        pandoc-types >=1.12 && <1.17,
+        R-pandoc     ==0.2.2
     main-is: src/Main.hs
     buildable: True
     default-language: Haskell2010
diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -3,6 +3,8 @@
 
 A [pandoc](http://johnmacfarlane.net/pandoc/) filter to embbed R plots inside markdown documents.
 
+See the [Blog post](http://www.corentindupont.info/blog/posts/Programming/2015-09-14-diagrams.html) for more details on usage.
+
 ## Usage
 
 Install R:
@@ -43,9 +45,6 @@
 [pandoc filter](http://johnmacfarlane.net/pandoc/scripting.html) as
 shown above.
 
-`R-pandoc` is aware of two code block classes.  A block with
-the `Rplot` class will be replaced by the resulting plot---the code
-will not appear in the output.  
 
 ## Installing
 
diff --git a/src/Text/Pandoc/R.hs b/src/Text/Pandoc/R.hs
--- a/src/Text/Pandoc/R.hs
+++ b/src/Text/Pandoc/R.hs
@@ -54,7 +54,7 @@
    Nothing -> [defFile]
 
 insertImage :: FilePath -> Inline
-insertImage file = Image [] (file,"")
+insertImage file = Image nullAttr [] (file,"")
 
 --plot the R graph
 --the files created will be the one specified in the R code with commands such as:
