Topic: buildgallery.php makes files to chmod 600 only


i got a little question. I am using the script buildgallery.php and i changed chmod to 755 ot 777 from images and from thumbnails dir. But when i try to build those thumbnails with the script it makes an "X" in the gallery. The reason is: The thumbnails have chmod 600 which doesnt allow the gallery to read those.

Question: What can i do that the script makes new files chmod of a minimum of 644 ?

edit: buildgallery.php version 1.9, running under php version 5.2.5-0.dotdeb.2, GD library version 2.0.34