Add RTL support - fixes #310