Replaced stream implementation with file only implementation of imagerepositoryAPI