Add taking picture method and instance of CIDetector.