Remove temporary text element after measuring it

Fixes ~~#17~~ #222