commented out keep in bounds code. added pan and zoom ability.
merged code...?