working for images within a folder