for (const element of Array.from($xml.find('[image]'))) {
    paths.add($(element).attr('image'))
  }