A quasi-static model for craquelure patterns