Implement creating and deleting a tile pattern in the model.