DPI Canvas Polyfill, formatter.js