fixed requestAnimationFrame, added layer/multiple canvases