New method used to date cave paintings