fix image resources in <link> tag resolving