refactoed getFilenameFilter to getImgageTypeFilenameFilter