Glitching video after rendering