crashing

currently crashing after running out of images.
Also running into defaulting problems