add tifffile.py support and self calibration function