new function: set zoom factor