Working horizontal time scrub functionality

This still contains several debug lines, but this modifies the
horizontal percentage into a interval that corresponds with the array of
images index.