Double click on images in mail won't open them
I usually can open an image file received in Mail just by double clicking on it.
But now when I double click on a jpg file received in a mail message I get a message saying I don't have authorization to show it.
I have to save the file to my computer before I can open it.
Also, if I change the default app used to open jpg files on my computer, the I get an error message from that app instead. For example, if I set Pixelmator Pro as the default app to open jpg files, I get an error message from Pixelmator Pro, and if I set Preview as the default app, I get an error message from preview.
Does anyone know what the problem is and how to fix it?
This problem started after updating my macbook pro 2019 to Mac OS 11.6.6
Thanks.