send and receive image between client and server