Code to receive image on server side. Including a simple test client.