Added filtering of files with JPG extension