Added support for TextAlignment
Updated starting position for text alignment