still has problems with attaching images for iriscouch