Right. The use case here was originally, the author (not me) had a webwork folder containing pg files, with an img subfolder.
That didn't result in images anywhere. So she tried putting the images online and linking. That got her images in the live version, but not in static.
Since I have a WeBWorK server (two actually, one of which is for PreTeXt), the easiest solution was to create a course there, copy the webwork folder (with the img subfolder) into the course, and then include with
<webwork source="webwork/
file.pg"/>
This isn't an option with the AIM server because we only provide the "anonymous" course for processing of WeBWorK problems from source.
The other way to do processing of local pg files with images is to run a local insurance of WeBWorK. I forget the details, but there is support for local processing now.