The writer William Boyd asks how, in an age of selfies, we are able to judge which images should endure