adding support for urls instead of base64 images