Not necessarly imagination. It may be based on incedents also.They carry descriptions such accurately.Hindhu scriptures available are not documented when created. Most of them are preserved by transfering from person to person. That does not mean they are all imaginary.But I just wanted to clarify your misunderstanding as biased to one family that you mentioned. That's all.But greatly demonstrate Dharma and helpful in choosing the right path at times of conflict.Rest is left to your understanding.