geturl function for im functionality