displaying img tags for image type urls