Change the image to data url