if thisLink contains "photo.php" or thisLink contains "picture.php" or thisLink contains "/view.php" or thisLink contains ".com/photo2/" or (thisLink contains "gallery.php" and thisLink contains "&pic=") then set theImages to theImages & thisLink