fix unencrypted links in embedded images