altered the debug panel to use its own canvas.