Base the width on the actual thickness of the SVG provided by the theme, otherwise it might get stretched way too much. (cherry picked from commit 31b3a130)