Closed #2741: fixed a bug of SpriteCanvas that loading texture doesn't work when calling initWithFile