Adding more control over sprite animations