Switching to html from image for nonlocal image