reslice using real image spacing (1.0-1.0 was hard coded)

fix 2d navigator bugs
fix compilation warning