Fixed zooming

Now the user can't go past the edge of the background by zooming.