Task 1: Image generation with input.

- Input-driven image generation (not sure about the random generation
method, may need to be revisited).