Bug fix: write image files in binary mode on Windows.