get image web service and clean up in webserver