create json data for image uploader redactor