Update gallerypopup.php