Fix printing flipped image on Windows.