all around fixs for mrimage, and indexMapToOffsetMap works!