sr.srokerect just wraps the strokeRect function of js