Map converts one data (file name) into other data (compressed content). Filter creates a subset of original data matching certain criteria. In your case it could return file names of files containing images.