Add support for RTL direction