finaly got uploading images to work.

need to update nginx.conf
had to change nginx.conf to allow asses to couchdb so that we have assess to attachments