added condition to check for whether user specified a desired width and height. if not checked, style says svg should use parent element width and height.