Elmes, James, 1782-1862