Viewfinder client and server code