Fix creation of json for image (pandoc 1.12.3.3)

At least with pandoc 1.12.3.3 otherwise you get an error

    pandoc: when expecting a [a], encountered Object instead
Merge pull request #7 from jerri/patch-1

Fix creation of json for image (pandoc 1.12.3.3)