Download images from remote URLs and encode/decode them to base64