Sorry, what do you mean by the root here. I am using a mac and i have done pwd in the folder where the images are saved. Do i need to have the script in the same place as the images. The script is in the folder above?