Have not done this, but something comes to mind. If it works when there is a pic, then make sure there's always a pic. When there is no relevant pic, that could be a person silhouette (if you're referring to people images) or even just a single pixel jpg.
BTW - are you storing these image files in a table as attachments? Not recommended. Better to just use the image path.
Last edited by Micron; 12-08-2021 at 09:08 PM.
Reason: clarification
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.