Changes usage of image path string objects to inputstream objects.

Change-Id: I05f53e83bcee465797e6c869a93ca0b701ab2f4e