Thom, Walter, 1770-1824