Output Segmented Image in JSON format.