selecting the correct media based on the tags defined on the media

When the BLC_MEDIA contains tags and when it matches the product options the correct media is not getting displayed