handshake to png