After being covered up by five coats of household paint for almost 200 years, a historic mural has been discovered in a church in Scotland.