Update file-gallery.php

integrate duplicate filtering for new media modals (filter modified to allow currently attached copies and hide the originals)