replaced the websocket system for getting images with locally getting images from the camera. commented out the while loop to test the code works before straining the raspberry pi