add algorithm to check if alt content is available under image tag