That means that the pictures haven't uploaded properly. Once you can access the photos properly, the script will work [provided paths are right.]

cr3ative