fix for broken image URL on resource preview page.