Improve zoom factor to work for different view sizes