Convert code image to dataURI.