Optimized SpriteClass class