scanner updated to open and close video device on each image grab
merged