Camera sample code