Set initial zoom to minimal
Disallow dragging to outside image
Continuous zooming
Code style changes
Fix zooming out on edge
Use window.parseInt
Refactor