Added AnimatedSprite flipping