zuid value and profile photo integration?

zuid value and profile photo integration?

We want to use the profile photos of the users by getting their zuid values through the API. Although the profile photos are set to public, when we want to access the photo when the user is not logged in, it gives an empty avatar instead of the user's photo. what is the reason of this ?