Small cleanup, OK to read picture files but interface with video files and webcam is still faulty