Fossils work almost the same way as photography as a record of history. The accumulation of time and history becomes a negative of the image. And this negative comes off, and the fossil is the positive side. This is the same as the action of photography.