add some simple examples to perform image and preview capture