Fix duplicate event bug

This needs the fix in prussdrv
Add jpeg encoder
Add option to subsample image

This gets the encode time down under the frame period so we don't
fall behind.
Basic streaming from the camera is working