add Painter::paintSingle() for test