Refactor video_frame