compress inline svg for display