If I understand what you're aiming at here, gallery2 (gallery.menalto.com) does this very thing. I now wish every other open source app I use (MediaWiki, Drupal, WordPress (and WPMU)) offered this capability. But I'm speaking as a code/CSS/PHP rock. Thus, all I can do is cheer, hope and wait.