Added more write methods, PhotonType.Null for older protocol version