Render Window to memory buffer