Make kdf entirely internal to generate_image.
Document the star pattern better.