added auto-minZoom to calibration and fixed resize