Added limit to number of pictures that can be selected