Make JSON output node image metadata and content

This fixes #66 
This also fixes #14