improve use of timeUpdate to sync images and video