Change protocol: send image size before sending curves.