Extracted portal marker into a separate function

This allows creation of plugins providing alternate portal marker styles and shapes (for third party plugin development). And it makes sense anyway :)
Merge pull request #407 from qnstie/master

Separation of portal marker creation into a separate function to allow substituting the marker with custom ones (in plugins).