extracting images to separate folder