Photos of his ex

I saw photos of my boyfriends ex.  Trips they took. Silly photos.  Nude photos that he took of her.  How do I get it out of my head and stop comparing myself. Fml.