Pin a reference

Start Framecap and call pin with an absolute local image path. Keep the returned pinId; close exactly that pin with pin close. If the client times out, check whether a pin appeared before creating another.