Adding some fast squares handling for SVG/Canvas