example of sending an image through TCP socket