Fixed the generation of the image associated to the activation graph