added posibility to add total number of photos