How to create a condition to reduce word count if photo attached