Fix freedrawing border and shadow

Hack to issue #1780 ( not really fix )
More generic fix for auto calculation of top left of paths.
The current positioning was correct just for top-lefted paths.