public function takeSnapShot($user_agent='Surebert Kamera', $options=Array()){
        $ch = curl_init($this->url.'/jpg/1/image.jpg?timestamp='.time());
       
        curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
        curl_setopt($ch, CURLOPT_USERPWD, $this->uname.':'.$this->pass);
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,2);
        curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
        curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        
        //add any additional options passed
        foreach($options as $k=>$v){
            curl_setopt($ch, $k, $v);
        }
        return curl_exec($ch);
    }