Added end conditions to CSpriteSheet

We may transfer these parameter to CAnimation if needed