Crowdsourced sleuthing exonerates politician viewing "dirty" pic

How did the guy find it so fast? Someone already have a back door or malware on his phone and can look at browser history?