better svg generation without compound path