add text alignment options - issue #340