How do I add variable text in graphics mode?