added support for OSD text alignment