public function getImageAsString($image_type = null, $quality = null)
    {
        $string_temp = tempnam('', '');
        $this->save($string_temp, $image_type, $quality);
        $string = file_get_contents($string_temp);
        unlink($string_temp);
        
        return $string;
    }