Fix svg flipping (again)

Fixes #1689.