Added static method for text drawing