Added test for image streams and added user-agent on request which prevents socket hangup failure.
Added example of file stream api