fixed transformation on rendering; added rtl text rendering