sending image data back to the server via websockets