Erotic art is not sex. It may be depictions of sex, but even then, a person looking at a picture (regardless of what he does to himself as he looks at the picture) is in no way, shape, or form having sex with the subject of the picture.
It's crazy that this even needs to be said, but too many people treat pictures as if they were sex itself. At most, erotic art is only pictures of sex, and much of it is not even that.