RTL support and header images bug

fixes #1