public function getSize($image, $relative = false)
    {
        if (!$image instanceof File) {
            if ($relative) {
                $image = $this->root_path . $image;
            }

            $image = new File($image);
        }

        return getimagesize($image->getRealPath());
    }