Clean up and improve rect API.