first draft of single MJPEG viewer