Add image to firebase chat

I have send message working but trying to do sending image the right way too. it opens up gallery but that’s about it anyone know how implement images like sendMessage function

sendMessage() {
    // alert(this.user);
    this.db.list('/chat').push({
      userName: this.FName,
      message: this.message
    }).then(() => {
      // alert(this.message);
      this.message = ''
      // alert(this.message);
    })
  }




  sendPicMsg() {
    let loader = this.loadingCtrl.create({
      content: 'Please wait'
    });
    loader.present();
    this.imgstore.picmsgstore().then((imgurl) => {
      loader.dismiss();
      this.chatservice.addnewmessage(imgurl).then(() => {
        this.message = '';
      })
    }).catch((err) => {
      alert(err);
      loader.dismiss();
    })
  }


}