improve link posting : check for videos and images