Improved the frame rate of the preview to 10 fps by extracting jpeg frames from the mjpeg stream instead of using jpeg snapshots.