filter file (find only .jpg, .jpeg and .png)