Extract points with spaces between attr name and value
Extract points between single or double quotes
Prenvent negative width and height
Convert a polygon to a rect
The attr order doesn't matter