Structure and strategy in image generation