added option to EmptyGallery to filter based on file extension