wsi: query the ICD's max dimensions instead of hard-coding them