protected function changeOptions($category)
    {
        $thumbnails = $category->ancestorsAndSelf()->with('thumbnails')->get()->map(function($item)
        {
            return $item->thumbnails->keyBy('slug')->map(function($item)
            {
                return [ 'width' => $item->photo_width, 'height' => $item->photo_height ];
            });
        })->reduce(function($carry,$item)
        {
            return $carry->merge($item);
        },collect())->toArray();
        Config::set('laravel-document-module.document.uploads.photo.aspect_ratio', $category->aspect_ratio);
        Config::set('laravel-document-module.document.uploads.photo.thumbnails', $thumbnails);
    }