Make JSON output node image metadata.

This fixes #66 and a part of #14