Is it possible to provide mask for listing JPG or PNG files only?

Yes, in the "Include files" box on the "Filters" page please enter

*.jpg;*.png