Cleaning code. Implemented a function that captures mouse movement so that it is possible to know
where the user wants to add a marker to the map image.