public function getCropTypeSize($thumbnail,$crop_type)
    {
        if ($crop_type === 'square') {
            return [
                'width'     => $thumbnail['width'],
                'height'    => $thumbnail['width']
            ];
        }

        $ratio = $thumbnail['width'] / $thumbnail['height'];
        if ($crop_type === 'vertical') {
            return [
                'width'     => $ratio == 1 || $ratio < 1 ? $thumbnail['width'] : $thumbnail['height'],
                'height'    => $ratio == 1 ? $thumbnail['width'] / $this->options['vertical_ratio'] : ($ratio < 1 ? $thumbnail['height'] : $thumbnail['width'])
            ];
        }

        return [
            'width'     => $ratio == 1 || $ratio > 1 ? $thumbnail['width'] : $thumbnail['height'],
            'height'    => $ratio == 1 ? $thumbnail['width'] / $this->options['horizontal_ratio'] : ($ratio > 1 ? $thumbnail['height'] : $thumbnail['width'])
        ];
    }