added rotation support to sprite class