modified:   lib/Gallery.php