convert images array into an image url

this converts the image id in the images array into a url for popit
hosted images and also populates the image property with the url of the
first image in the images array for popolo spec compatability

Fixes #470