Added SaveAsImage implementation for Windows