img_to_graph