When connecting to the socket, the raw data of one image is sent to the receiver.