fix path behaviour with top/left offsets, fixes #663

This should fix most/all of the issues in #663.
@Kienz please verify