Make zoom() code a little nicer
Merge pull request #881 from akdor1154/fixZoom

Make zoom() code a little nicer