worked till images uploaded showing preview and dynamically adding fields with image names saving in couchdb