if maximumNumberOfPhotosToBeSelected ==1 hide done button and perform selection on tap