added rotation support to texture class