adding picture functions to support zsock_send