added async http request for sending image to server, but is not quite working yet.