implemented video frame timing