Added an init method with a repeatCount parameter since the init code ca...

...lled setupAnimationGroup which resulted in the animationGroup always having an INFINITY repeatCount