convert images array into an image url

The popolo spec specifies an image property but we store images
internally as an array so when returning a document in the API, if there
isn't an image property already, we generate one.

This either returns the URL property of the first image in the array or
constructs the URL to display the file we've stored

Fixes #470