give up using canv.toDataURL()
use canvas instead of image for game background

RES.canvas also supports attribute stack=x/y;
RES.canvas can be from another canvas;
add function keep_outside(...)
more minor adjustments