Added the save photos method.