Corrected error in programming logic that would not allow an odd number of photos per row.