Fixed texture wrap, added rotation support