ENH: Add StreamAPipeline.

Also tweak GenerateRandomImage.

Change-Id: I25d08d38dd07304083ad0f02876b0d13e88e402e
Merge topic 'Add_StreamAPipeline' into master

2e9d7d47 ENH: Add StreamAPipeline.