update paint2d sample