Since my last response I've upgraded to PS4, moved all the images to my local drive, changed their permissions to 664 and the problem hasn't changed.
I spoke to my host and image uploads all come in as 664 according to their settings.
But, for me, they arrive there as 640 and changing them to 664 after the fact doesn't work.
The section of code you indicated previously has changed in PS4 so how about a revised update and am I the only person with this problem?
Is it possible that it has anything to do with case? My images are mixed case.
Mick
P.S. And why oh why can't I chose images that are already on the server as is done in the image gallery? That just makes no sense.