Fixed text alignments (other than left) not working. Fixes #5