Factorize code and fix v4l2 devices.
Add source from image files.