use context2d and the latest animationframe