Changes images to dataURIs