Add a default

Add a default and check for support of devicePixelRatio