some work on saving the photos