Simplifying formula a bit and reordering some lines
Bugfix: using absolute positioning for markers instead of relative.

Adding link to blog article explaining povToPixel().