Remove temporary text element after measuring it

Fixes #17