protecting against insufficient number of photos