Clean up canvas sizes and corresponding clearRects
Fix for weird tab switch bug.