Generate graphs as well as images