Added conditional validation to product images