added functionality to access camera