Added check for no route on image map template function