added window-centering to frames_to_time