when you upload the pic via the site, does the folder have the right permissions?
I think that maybe when you upload you can set the permissions of the file - that unauthorised error message suggests that its not allowing guests to view the uploaded file.....