Fix Issue #13

Fixed issue #13 and updated 'resize' function so that the occurrence point goes to the center of the map.