added support for rotating text