Move texture upload to window_capture_update

This decreases the (graphics subsystem) synchronization overhead and
results in higher fps (unless fps is limited by the pixel data download
speed in CGContextDrawImage)