Image line endings fix