Allowing only jpg, gif or png photos.