fixed! Add debugging to see how many images there are.