$details = $this->parent->get_photo_details($idx);
foreach(Array($this->parent->cfg->thumb_width, $this->parent->cfg->photo_width) as $resolution)
$details = $this->parent->get_photo_details($idx);
foreach(Array($this->parent->cfg->thumb_width, $this->parent->cfg->photo_width) as $resolution)