In following code I am converting raw image dataset to csv in such a way that in the first column I am saving the name of the class (label) which in this case is folder name