Fix issue with map edges at different resolutions

The map now snaps to the edges no matter what the screen resolution is.
Also changed the smoothing to prevent the weird lines at the points
where the map images split.