Output segmentdd Image in JSON format

Please consider its inclusion.