public function getUrl($url, $size = "thumb", $fullUrl = false)
    {
        // Get default dimensions
        $defaultDimensions = Config::get('redminportal::image.dimensions');
        
        // Get upload path
        $upload_path = Config::get('redminportal::image.upload_path');

        $dimension = $defaultDimensions[$size];

        // Get dimmensions and quality
        $width   = (int) $dimension[0];
        $height  = isset($dimension[1]) ?  (int) $dimension[1] : $width;
        $crop    = isset($dimension[2]) ? (bool) $dimension[2] : false;

        // URL info
        $info = pathinfo($url);

        // The size
        if (! $height) {
            $height = $width;
        }

        // Directories and file names
        $fileName       = $info['basename'];
        $targetDirName  = $width . 'x' . $height . ($crop ? '_crop' : '');
        $targetUrl      = RHelper::joinPaths($upload_path . $info['dirname'], $targetDirName, $fileName);
        $relativeUrl    = RHelper::joinPaths($info['dirname'], $targetDirName, $fileName);

        return ($fullUrl ? $targetUrl : $relativeUrl);
    }