Adds tolerance for invalid photos.