zoomfactor can be a function