Try to fix Windows issue for JPEG image saving.