add support for image urls to avoid swapping base64 strings for img src