Modified preloading order of the next photo to load only after the current photo has finished loading