We don't have any instance property that stores the WMS version. So we would have to parse the VERSION param from the existing url. Something like

    if (/VERSION=1.3/.test(url)) { /* set I and J */ } else { /* set X and Y */ }

Would you prefer that?