Your problem is that you are attempting to put NSData objects into a JSON object. Instead of adding the image data to the imageDictionary, add the base64 encoding of the images to the imageDictionary and you should have no problem.
Matt Gallagher has a handy class for handling base64 here: http://www.cocoawithlove.com/2009/06/base64-encoding-options-on-mac-and.html