According to this N Y Times article, technology has advanced to the point where images of unwanted mates or former friends can be edited out of photographs.
The restoration artists are also able to edit people in to and out of photographs. Many customers ask the services to edit former husbands or wives out of cherished family photos.
I employed a similar but low-tech solution to getting rid of pictures of former boyfriends or bad dates. I simply cut their heads out of the photos, leaving a picture of myself looking gorgeous on the arm of a headless guy.