>>32
直前だったらpreceding-sibling::img[last()]じゃないか?
試してないけど