show mean images and fix a bug in 3D localization