private function _getS3Object() { if (is_null($this->s3)) { $this->s3 = new \S3(craft()->imager->getSetting('awsAccessKey'), craft()->imager->getSetting('awsSecretAccessKey')); $this->s3->setExceptions(true); } return $this->s3; }