Updated GalleryExtractor to support line numbers and matching filenames (issue #26).