returning image as json
providing method for closing webcam connection
integrating CH API to frontend