Refactor tile cover to match JS
Support pixelRatio parameter for render tests