made image into a data uri