well during class i learned that they usually painted them from memory. but like in paleolithic times, people made little figurines and used their shadows inside the caves as references. ALSO they mostly used caves for rituals but they met w hibernating bears in deep down so yeah