Fixing even/odd pixels being swapped