fix bugs, and add live camera example