deal with footprints that swap dx/dy isof rotate
more examples
cleanup js context from time to time as a workaround