Fixed bug, now it finish the program if can't find the images.