Replaced layer canvas with PECanvas.