new example to convert the first frame to a jpeg