added picture saving in the localhost after capturing it and displaying all pictures in a gallery