x = _getDouble(attributes, "x", 0);
y = _getDouble(attributes, "y", 0);
PaintedString string = new PaintedString(content);
processPaintedStringAttributes(string, attributes);
string.translate(x, y);
return string;
} else if (type.equals("image")) {
double x;
double y;
double width;