Accept a modifying function as the first param of imagehash
Add an optional parameter to only include hash specified file exentions.