Removing invalid svg's