For text I find it's easier just to use findimg.
PHP Code:
with (findimg(200)) {
x = 30;
y = 30;
text = "Hello World";
// Colors
red = random(0,1);
green = random(0,1);
blue = random(0,1);
style = "bc";
// Other features of interest
textshadow = true;
shadowcolor = "1 1 1";
shadowoffset = {2, 2};
}