updating tag for snippet img conditional statement