Fix image flipping

This broke somewhere along the way...