public function __construct($overrides = null)
{
foreach ($this->attributeNames() as $attr) {
if ($overrides !== null && isset($overrides[$attr])) {
$this[$attr] = $overrides[$attr];
$this->_addToOverrideFilestring($attr, $overrides[$attr]);
} else {
$this[$attr] = craft()->config->get($attr, 'imager');
}
}
if (isset(ImagerService::$craftPositonTranslate[(string) $this->position])) {
$this->position = ImagerService::$craftPositonTranslate[(string) $this->position];
}
$this->position = str_replace('%', '', $this->position);
}