some script on beaglebone to take a snapshot by logitech c310