ensure preview element is injected with video and canvas