add the possibility to register image of graph