fix absolute paths of images; hide link preview on cancel