add createRectangleFromString, which was forgotten