Text drawing properly working