takes the photos out of the last commit