Changing isValidPicture