Switched the webcam stream from writing to file, to storing in main memory and producing a jpeg http reply on request. Can now visit "/frame" to download a .jpeg from the server. Baby steps...