Reset timeout on click. 

Reset the timeout when you click a photo, so when you click a photo 59 seconds in, the next photo isn't shown for only 1 second before loading the third photo.