Tidy up the API for sprites, allow flipping sprites, add sequence functions to the KeyFrameAnimated interface