improved mjpeg example