Adding methods to get w and h of text