pixelToTileCoords needs Math.round