private function _saveFile() { // Write the resized image to the cache $function = $this->outputFunction; $function($this->dst, $this->resized, $this->quality); // Clean up the memory ImageDestroy($this->src); ImageDestroy($this->dst); }