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 :)