Added an init method with a repeatCount parameter since the init code called setupAnimationGroup which resulted in the animationGroup always having an INFINITY repeatCount