Fixed the custom implementation of the 2D canvas.