Fixed bug where program crashed if there were no images in images folder.