As I was browsing through the internet, I came across an immodest photo. However, I was not aroused by it and I looked away. I then decided to close the tab window, but since the image was still on the computer screen I saw the image again as I closed the window. I did flee from it and stop myself from taking it any further, yet I am unsure whether or not I committed a sin because I saw the image again as I closed the tab window to avoid it.
No, you didn’t. Seeing it again, in the act of disposing of it, does not make it sinful.