How is this not automated?
Parsing XML files should be easy, getting the image resolution should be easy, the xml files have the same name as the images so referencing the correct image should be easy.
If I were a developer I'd have already done it, but I suck at coding and I know it. However, I know enough to know that someone who codes daily could do this in 10 minutes.