Fixed accidental inversion of image indices