fixed graph2img