The previous implementation of .to_image() only worked if the VideoFrame's line size matched the image width.