[periscope] Extract width and height (closes #20015)