A sprite animation cycle utility