Filter non-png/jpg files

Files which do not end with .png or .jpg will no longer be displayed in
the list of images