<ion-header>
    <ion-navbar>
        <ion-title>Upload Picture</ion-title>
        <ion-buttons end>
                <button ion-button (click)="dismiss()">
                  <span ion-text showWhen="ios,core">Cancel</span>
                  <ion-icon name="md-close" showWhen="android,windows"></ion-icon>
                </button>
              </ion-buttons>
    </ion-navbar>
</ion-header>
       
      <ion-content padding>
        <img src="{{pathForImage(lastImage)}}" style="width: 100%" [hidden]="lastImage === null">
        <h3 [hidden]="lastImage !== null">Please Select Image!</h3>
      </ion-content>
       
      <ion-footer>
        <ion-toolbar>
          <ion-buttons>
            <button ion-button icon-left (click)="presentActionSheet()">
              <ion-icon name="camera"></ion-icon>Select Image
            </button>
            <button ion-button icon-left (click)="uploadImage()" [disabled]="lastImage === null">
              <ion-icon name="cloud-upload"></ion-icon>Upload
            </button>
          </ion-buttons>
        </ion-toolbar>
      </ion-footer>