moved video frame synchronization to single location (screen update)