How does afterimages occur?

Can you answer this question?