Dung beetles record a mental image of the positions of celestial bodies and use the snapshot to navigate, say researchers.