Make canvas transform matrix account for devicePixelRatio
Merge pull request #2572 from mduan/issue2477

Make canvas transform matrix account for devicePixelRatio