Fix images row swapping