MJPEG encode and decode now works