fix typos in logical expressions
remove support specifically for image files because images can also have no extension
remove double regex procedure. Fix typos
remove double regex procedure. Fix typos
Revert "remove double regex procedure. Fix typos"

This reverts commit a4847eac6c58851867b341e6336ba4bbd99d6d3a.