Refactor zoom.go. Make it more concise, slightly faster