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

fix #11965: join images to plate runs for leaf queries (rebased from dev_5_0)