Well, there is a difference between pornography and art. A lot of religious paintings include nudity, say to demonstrate the purity of our first parents or whatnot.
The human body is beautiful, and we can appreciate that beauty and worship God for His workmanship. But, there are nude images that, rather than conveying this beauty, convey a necessarily ugly, ultimately, sexually enticing image.
But we who are not fully mature may still be tempted even by true art, especially men. So, it ultimately depends on the person, but if you think it’d be a proximate near occasion of sin, which is itself a sin, then avoid it, and avoid it well. Close your eyes, cover it with a hand, don’t look, etc if you cannot avoid coming across it for some reason.