Receive and display images

todo: use malloc rather than static nacl-buffer