Receive stream from server and convert stream to image format