Added support for multiple galleries on a page.

This allows multiple nextgen galleries to be converted on a page, preserving the image maps to the correct galleries.