Fix custom abs function by using std::abs
Fix svg outputs being upside-down