Geometry all messed up in latest 5.7.0 pre-release?

The culprit is probably this change:

I should have suspected that it was wrong, because images should only be ever transformed with homogeneous transformation matrices, never with just flipping.