Algorithm changed which selects next picture to show