fix: filterimages now works for filenames and file extensions