Only allow photos to be JPGs or PNGs.