Ok, find that sscanf() line, around line 499,
replace that line and the next one with this:
$txtcolor = str_replace('#', '', Config::Get('SIGNATURE_TEXT_COLOR'));
$color = sscanf($txtcolor, '%2x%2x%2x');
$textcolor = imagecolorallocate($img, $color[0], $color[1], $color[2]);