I have occasionally heard the following expression, when a child looks "exactly" like a parent (said to the lookalike parent): "You could have spit him/her out all by yourself". Whether this is based on spitting image or not, I don't know.