move setFrame from sprite to Animation