`this.devicePixelRatio` was undefined because called statically.

The value is now passed to the function called within the constructor.