reorganized  mjpeg-stream and cleaned up debug lines