Download pictures for HTML file using Java SDK

Good day,
I'm currently using the Java SDK for Pipeline Pilot to develop an Blast application that downloads locally the first result file, either a PDF file or a HTML file.
To perform this download, I use the command:

StJobResult prr .....;
Sring[] results = prr.getResultFiles();
...
PipelinePilotServer.getRemoteFileManager().downloadFile(results[0], localResultFile);

as it's shown on the Pipeline Pilot Help Center.

This protocol works fine with a PDF file.
The problem appears when I want to download a HTML file. In this case the "result.html" file is downloaded but not the related pictures.
These pictures are created but they stay on the server.

When I have a look on the server side, and more precisely on the "job id" folder of my protocol I have got:
- result/
- result.htm
- RunInfo/
- temp/

all the pictures related with the htm file are in the result folder, but they are not downloaded.

How can I download everything at once?
Do I create a loop to download all the pictures in the result folder or is there a quicker way?

Many Thanks

Pierre