check for view.imgPath when constructing img url