BUG: Fix GetImage segfault on Windows