Add json export

Contents:

  - add option to export json
  - added json image
  - aligned xml and json image formatting

Potential future enhancement: allow export of current selection instead of *all* data.