Ittai zibun-no dono syasin-o John-ga [Bill-ga pro/sore-o katta toki-ni] t nagameteita no ?
the hell self-GEN which picture-ACC John-NOM Bill-NOM it bought when  was looking Q
Which pictures the hell of himself was John looking at t when Bill bought e?