 
     sprite = I.spriteLookup[frames[I.currentFrameIndex]]
 
-    I.sprite = sprite
-    I.width = sprite.width
-    I.height = sprite.height
+    updateSprite(sprite)
 
   find = (name) ->
     result = null

      result = animation if animation.name.toLowerCase() == nameLower

    return result  

  ###*
  Transitions to a new active animation. Will not transition if the new state

      firstSprite = I.spriteLookup[firstFrame]

      I.currentFrameIndex = 0
      updateSprite(firstSprite)
    else
      warn "Could not find animation state '#{newState}'. The current transition will be ignored" if I.debugAnimation

