Generally speaking, you don't need to worry that such information will be leaked by the model in any way. If the model is trained to predict image class as "dog" or "cat", it's impossible for it to reveal any hidden information to the end-users. However, if you are worried about distributing such data, we can empower a technique called data masking or ppi masking, which will hide any secret information before passing data to the researchers.