Feel like it would be up to staff discretion on how private the way the picture was shared is, example your profile picture is obviously public, a discord dm is obviously private, etc
Regardless of "doxxing" it would probably be construed as harassment if the person has an issue with how it is used.