image segmentation through websockets