improved raphaelutils