Posting images to JSON from out put