Changed it so it checks to see if pic is contained rather than the value = pic