Apple granted patent for GoPro-like camera