using filezilla, change the permissions on the gallery folder and folders and files underneath to 755.
if the files are already created with 777 permissions, the code change wont reset them, that needs to be done manually in filezilla or another dedicated FTP program.