Invert indices in ScanImageFixedSize