added check if the folder that the images are created.