Draw shapes in text document