working code for Camera :)