The intent in art is paramount. Whether the author did it accidentally or not is not too relevant. The very act and manner of presenting it can define it as an artwork. Or not.

This photo is very skilled, sensitive erotic presentation. Is it art? Honestly I don’t give a damn. I just enjoyed it.