fix raw image link replacement in compilePrview, call from preview method, fixes #491