Figure 4–34. Stages of a leafminer. Eggs are deposited on the surface of a leaf, and they become larvae that tunnel through the leaves leaving frass (middle). They pupate and emerge as adult flies.
leafminer stages. Eggs(left), larvae(middle), then adult fly(right)

Martin Cooper Ipswich, Flickr  CC BY 2.0