fixing some bugs and selecting the usb camera directly.