Assemble a record for CouchDB.
Actually creates records now.
Call add-image.js to log images in the database.