I am using this to save two resized images from the same photo. One of the files gets saved with 644 permissions and all is right in the world. The other always get saved as 600 and as such can't be displayed in the webpage.

For now, after saving them, I run a little utility to set everything in that directory as 644 so it works now.