added image detection to urlDetection Thanks @infyhr