base64 images

get all URLs from img tags and css, download them, and replace the URLs with the base64 encoded data, and them finally call the onAvailable callback.