calibrate: add freq vs height fitting
Fix image processing and loading for refolding