better raphael coords calculation