changed svg width logic