Made some changes so that images are loaded with streams