Remove unused code
Add min and max zoom factor