protected function setDirectoryImage()
    {
        $imagestyle_directory = GC_DIR_IMAGE_CACHE . "/$this->data_imagestyle_id";
        $image_directory = pathinfo($this->data_path, PATHINFO_DIRNAME);

        if (!empty($image_directory)) {
            $imagestyle_directory = GC_DIR_IMAGE_CACHE . "/$this->data_imagestyle_id/$image_directory";
        }

        $this->data_imagestyle_directory = $imagestyle_directory;
        $this->data_cached_file = "$imagestyle_directory/" . basename($this->data_path);
    }