Add centered text rendering function.