The house where Peter Pan author JM Barrie was inspired to create his classic children's tale is among several historic sites across Scotland to share £1.7 million of restoration funding.

Moat Brae House in Dumfries, Barrie's inspiration for Peter Pan, will receive over £300,000 towards its continued redevelopment.

The house, which was at risk of demolition in 2009, is set to become a tourist attraction and education and storytelling centre.

Historic Scotland's Building Repair Grants Scheme will also help to revive medieval Dean Castle in Kilmarnock, 18th Century Lamer Island Battery at Dunbar, and gothic mansion Brough Lodge in Shetland, among others.

The funding awards were announced by Culture Secretary Fiona Hyslop.

Dean Castle has been awarded £500,000 to carry out urgent repairs, while Brough Lodge on Fetlar island is being renovated with over £460,000 of funding.

Ms Hyslop said: "Our diverse built heritage plays an important role in towns and cities across Scotland and forms a key part of our cultural identity.

"The recipients of this award showcase the scope and scale of these buildings and investing in their repair will ensure they can open their doors to the public for years to come."