static function onImage($string, $image, $fontName, $x = 0, $y = 0, $size = 10, $defaultColor = '000')
    {
        if ($size <= 5)
            self::onImageQuality($string, $image, $fontName, $x, $y, $size, $defaultColor, 3);
        else if ($size <= 10)
            self::onImageQuality($string, $image, $fontName, $x, $y, $size, $defaultColor, 2);
        else if ($size <= 20)
            self::onImageQuality($string, $image, $fontName, $x, $y, $size, $defaultColor, 1);
        else
            self::onImageFast($string, $image, $fontName, $x, $y, $size, $defaultColor);
    }