Potrace performance fix