For me, the concept of infidelity actually applied to Harry and Snape. Not that this is fair to Harry, because, really, Snape IS a portrait, but in the end it didn't matter to either of them. It was a betrayal of sorts, and Harry knew that. Thank you.