added OSD horizontal and vertical alignment