Fixed some problems related to image streaming and visualization