Add a proper view and use graph as image in the index action