Apple granted patent to disable cameras