modify for mjpg