Historic Selby building to get new lease of life in £500,000 care home revamp