Improve template to avoid downloading image