Fixes allocation bug in render thread.
Adds resize support for video capture.