Sample code for accessing camera preview and displaying overlay