Videos are broken in goToPrevious goToNext
Issue: Using goToNext/goToPrevious with non-image mime types causes them to be skipped (or stuck on the first file in the collection if only videos)
Fix: Check against allowedKinds and offload the mimetypes to the fileItemKind function.