Filter out images and tmp folder from file_rec