This exhibition in Scotland lifts the lid on the art of royal portrait photography.