QA: Make image clicking tests more generic

Use the first image on the page as the basis for the test
The previous setup enforced that the wiki had to run on wiki/ prefix
which is not always the case (mine for instance runs on w/index.php)
It also unnecessarily expects an exact image.

Change-Id: I5f0647727a27fe7a127796132d516c62ceb792d2