fix 11965: join images to plate runs for leaf queries
Merge pull request #2221 from mtbc/trac-11965-plate-join-image-leaves

fix #11965: join images to plate runs for leaf queries (merging for `5.0.1`)