updated fileIO.cpp so that it will try to read the next image for up to 300 image # and 300 seconds