I used the png to generate the string. Works as a charm.
You also should write an extra line at the end of your function
$String_FormIcon = $System.Bitmap.FromBase64String($String_FormIcon)