fix for product images and gallery images validation