Modify image writing so everything goes into a CouchDb document called images. In other words, images now has multiple attachments.